package com.itheima.springboot_22_task.quartz;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;


public class MyQuartz extends QuartzJobBean { //这是一个task任务类
    @Override
    protected void executeInternal(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        jobExecutionContext.getFireTime();//这是任务上下文对象,由此可以拿到任务执行情况
        System.out.println("aaaaaaaaaaa");
    }
}
